<template>
    <div class="quarterly_report">
        <div v-if="xianshi != 1">
            <xlUntil text="机构标签" :queryParam="queryParam" v-show="test" :filtersVislble="true"   :addBtn="status != 1"  v-bind="$attrs" @delBatch="delBatch" @addForm="addForm"  @searchKeyWord="searchKeyWord" :export-xls-data="columns" :export-xls-url="url.exportXlsUrl"></xlUntil>
        </div>
        <div class="xl-table-content">
            <xlTable
                    :columns="columns"
                    :dataSource="data"
                    rowKey="id"
                    :pagination="pagination"
                    :loading="loading"
                    @change="handleTableChange"
                    bordered
                    :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}">
                >
                <template v-slot:action="scope">
                    
                    <div>
                        <a @click="seeForm(scope.record)" >查看</a>
                    </div>
                </template>
            </xlTable>
        </div>
        <xlForm ref="xlForm" @handleOk="handleOk"></xlForm>
        <seeForm ref="seeForm"></seeForm>
    </div>
</template>

<script>

    import xlMixin from '../../mixin/index'
    import seeForm from '../../../views/new/introduction_company/model/see'
    
    export default {
        name: "index",
        mixins:[xlMixin],
        data(){
            return{
                columns:[
                    {
                        title: '编号',
                        key: 'rowIndex',
                        align: "center",
                        fixed: 'left',
                        width:'80px',
                        customRender: function (t, r, index) {
                            return parseInt(index) + 1;
                        }
                    },
                    {
                        title: '企业名称',
                        dataIndex: 'companyName',
                        fixed: 'left',
                        type:'input'
                    },
                    {
                        title: '统一社会信用代码',
                        dataIndex: 'creditCode',
                        // tableVisible:true, 列表不展示
                        type:'input'
                    },
                    {
                        title: '注册时间',
                        dataIndex: 'registerDate',
                        type:'date'
                    },
                    {
                        title: '注册地址',
                        dataIndex: 'registerAddress',
                        type:'input'
                    },
                    {
                        title: '产业领域',
                        dataIndex: 'industrialDomain',
                        type:'input'
                    },
                    {
                        title: '成立时间',
                        dataIndex: 'establishDate',
                        type:'date'
                    },
                    {
                        title: '注册资本',
                        dataIndex: 'registeredCapital',
                        type:'input.number'
                    },
                    {
                        title: '本季度营业收入(万元)',
                        dataIndex: 'businessIncome',
                        type:'input'
                    },
                    {
                        title: '是否高企',
                        dataIndex: 'ht',
                        type:'radio',
                        typeData:[
                            {
                                dataName:'是',
                                dataValue: true
                            },
                            {
                                dataName:'否',
                                dataValue: false
                            }
                        ]
                    },
                    {
                        title: '高企认定年份',
                        dataIndex: 'htIdentifyYear',
                        type:'date'
                    },

                    {
                        title: '是否市入库',
                        dataIndex: 'cityWarehousing',
                        type:'radio',
                        typeData:[
                            {
                                dataName:'是',
                                dataValue: true
                            },
                            {
                                dataName:'否',
                                dataValue: false
                            }
                        ],
                        defaultValue:false
                    },
                    {
                        title: '是否省入库',
                        dataIndex: 'provinceWarehousing',
                        type:'radio',
                        typeData:[
                           {
                                dataName:'是',
                                dataValue: true
                            },
                            {
                                dataName:'否',
                                dataValue: false
                            }
                        ],
                        defaultValue:false
                    },
                    {
                        title: '操作',
                        dataIndex: 'action',
                        align: "center",
                        fixed: 'right',
                        width:'150px',
                        scopedSlots: {customRender: 'action'},
                    }
                ],
               
                // 请求参数
                paramMore:{
                    "newDevOrgId": ''
                },
                url: {
                    list: "/ndo/api/ndo/hatch/company/introduction/page/list",
                    add: '/ndo/api/ndo/hatch/company/introduction/save',
                    edit: '/ndo/api/ndo/hatch/company/introduction/save',
                    delete: "/ndo/api/ndo/hatch/company/remove",
                    deleteBatch: "/ndo/api/ndo/hatch/company/remove",
                    exportXlsUrl: "ndo/api/new/dev/org/export/introduction/company",
                    importExcelUrl: "ndo/api/ndo/hatch/company/importExcel",
                    importExcelDemoUrl:'/ndo/api/ndo/hatch/company/importTemplate'
                }
            }
        },
        props:{
            newDevOrgId:Number,
            test:Boolean,
            status,
            xianshi:Number
        },
        created(){
            this.paramMore.newDevOrgId = this.newDevOrgId
            this.formatMerge()
            this.pageOnload()
        },
        watch:{
           newDevOrgId(){
               this.paramMore.newDevOrgId = this.newDevOrgId
               this.pageOnload()
           }
       },
       methods:{
       },
       components:{
           seeForm
       }
    }
</script>
<style scoped>

</style>
